//
//  AppDelegate.h
//  We_Travel
//
//  Created by lanou3g on 15/12/9.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import <BaiduMapAPI_Base/BMKBaseComponent.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate,BMKGeneralDelegate>

@property (strong, nonatomic) UIWindow *window;
//数据管理器类,相当于内存中的数据库,断电消失
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//数据模型类
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//数据连接器,将内存中的数据存储到本地document中
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;


@end

